package com.practicespringboot.dataopt.pojo;

public class User {
    private int id;
    private String username;
    private short rank;

    // 构造函数
    public User(int id, String username, short rank, int created) {
        this.id = id;
        this.username = username;
        this.rank = rank;
        this.created = created;
    }

    public int getId() {
        return id;
    }

    public String getUsername() {
        return username;
    }

    public short getRank() {
        return rank;
    }

    public int getCreated() {
        return created;
    }

    private int created;


    public void setUsername(String username) {
        this.username = username;
    }

    public void setRank(short rank) {
        this.rank = rank;
    }

    public void setCreated(int created) {
        this.created = created;
    }

    public void setId(int id) {
        this.id = id;
    }


}
